﻿<Page x:Class="ScoreMS.Views.OutputDetailScore"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="618"
	Title="OutputDetailScore">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="72" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Text="详细成绩表导出" VerticalAlignment="Center" TextAlignment="Center" FontSize="24" Grid.Row="0"></TextBlock>

        <Grid Grid.Row="1">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="45" />
                    <RowDefinition Height="45" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="0">
                    <TextBlock Text="课程" Margin="20, 0, 0, 0" FontSize="18"></TextBlock>
                    <ComboBox Height="23" Margin="20, 0, 0, 0" Name="cbxCourse" MinWidth="120" Width="120" SelectionChanged="cbxCourse_SelectionChanged">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding course_id}"></TextBlock>
                                    <TextBlock Margin="3, 0, 0, 0" Text="{Binding course_name}"></TextBlock>
                                </StackPanel>
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                </StackPanel>
                <StackPanel HorizontalAlignment="Center" Orientation="Horizontal" Grid.Row="1">
                    <TextBlock Text="班级" Margin="20, 0, 0, 0" FontSize="18"></TextBlock>
                    <ComboBox Height="23" Margin="20, 0, 0, 0" Name="cbxClass" MinWidth="120" Width="120">
                        <ComboBox.ItemTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="{Binding class_id}"></TextBlock>
                                </StackPanel>
                            </DataTemplate>
                        </ComboBox.ItemTemplate>
                    </ComboBox>
                </StackPanel>
                <Button Content="导出成绩" Grid.Row="2" Height="23" Margin="332,49,211,66" Click="Button_Click"></Button>
            </Grid>
        </Grid>
    </Grid>
</Page>
